package com.module.user.ui.widget

import android.content.Context
import android.util.AttributeSet

import android.view.View


import android.widget.LinearLayout
import androidx.annotation.Nullable
import com.allen.base.base.basic.extras.loadCircle


import com.module.user.R
import kotlinx.android.synthetic.main.user_logged_in_view.view.*

/**
 * 未登录和已登录
 * */
class LoggedInView : LinearLayout {

    constructor(content: Context?) : super(content) {
        initView()
    }

    constructor(context: Context, @Nullable attrs: AttributeSet?) : super(context, attrs) {
        initView()
    }

    constructor(context: Context, @Nullable attrs: AttributeSet?, defStyleAttr: Int) : super(context, attrs, defStyleAttr) {
        initView()
    }

    private fun initView() {
        View.inflate(context, R.layout.user_logged_in_view, this)
        user_notLogged?.visibility = View.VISIBLE
        user_yesLogged?.visibility = View.GONE
    }
}